package com.example.projectmgmt.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

public class ProjectDTO {
    @NotBlank(message = "项目编号不能为空")
    @Size(min = 1, max = 10, message = "项目编号长度需在1-10之间")
    private String projectNo;

    @NotBlank(message = "项目描述不能为空")
    @Size(max = 50, message = "项目描述最多50字符")
    private String projectDesc;

    // Getters and Setters
    public String getProjectNo() { return projectNo; }
    public void setProjectNo(String projectNo) { this.projectNo = projectNo; }
    public String getProjectDesc() { return projectDesc; }
    public void setProjectDesc(String projectDesc) { this.projectDesc = projectDesc; }
}